export class storecouponuser {
  id?: number;
  name = '';
  couponId = ''
  cid = ''
  uid = ''
  money = ''
  minPrice = ''
  type = ''
  status = 0
  createTime = ''
  updateTime = ''
  startTime = ''
  endTime = ''
  useTime = ''
  useType = ''
  primaryKey = ''
  constructor(data?: storecouponuser) {
    data && this.setProps(data);
  }

  setProps(data: storecouponuser) {
    (Object.keys(this) as Array<keyof Istorecouponuser>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Istorecouponuser = Omit<storecouponuser, 'setProps'>